package com.property.manage.dao.parking;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.property.manage.model.parking.ParkingRentArrearsDetailVo;
import com.property.manage.model.parking.ParkingRentArrearsEntity;
import com.property.manage.model.parking.ParkingRentArrearsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/9/15
 */
@Repository
public interface ParkingRentArrearsMapper extends BaseMapper<ParkingRentArrearsEntity> {

    IPage<ParkingRentArrearsVo> arrearsPage(@Param("page") Page<ParkingRentArrearsVo> page, @Param("villageId") Integer villageId, @Param("building") Integer building,
                                            @Param("unit") Integer unit, @Param("roomNumber") String roomNumber, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    List<ParkingRentArrearsDetailVo> arrearsDetailList(@Param("buildingId") Integer buildingId);

    List<ParkingRentArrearsDetailVo> arrearsDetailExport(@Param("villageId") Integer villageId, @Param("building") Integer building,
                                                         @Param("unit") Integer unit, @Param("roomNumber") String roomNumber, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
}
